﻿import request from '/@/utils/request';
enum Api {
  AddBusProductAttributeValue = '/api/busProductAttributeValue/add',
  DeleteBusProductAttributeValue = '/api/busProductAttributeValue/delete',
  UpdateBusProductAttributeValue = '/api/busProductAttributeValue/update',
  PageBusProductAttributeValue = '/api/busProductAttributeValue/page',
  GetBusProductDropdown = '/api/busProductAttributeValue/BusProductDropdown',
  GetBusAttributeDropdown = '/api/busProductAttributeValue/BusAttributeDropdown',
  GetBusPAttributeInfoDropdown = '/api/busProductAttributeValue/BusPAttributeInfoDropdown',
}

// 增加物料属性属性值关系
export const addBusProductAttributeValue = (params?: any) =>
	request({
		url: Api.AddBusProductAttributeValue,
		method: 'post',
		data: params,
	});

// 删除物料属性属性值关系
export const deleteBusProductAttributeValue = (params?: any) => 
	request({
			url: Api.DeleteBusProductAttributeValue,
			method: 'post',
			data: params,
		});

// 编辑物料属性属性值关系
export const updateBusProductAttributeValue = (params?: any) => 
	request({
			url: Api.UpdateBusProductAttributeValue,
			method: 'post',
			data: params,
		});

// 分页查询物料属性属性值关系
export const pageBusProductAttributeValue = (params?: any) => 
	request({
			url: Api.PageBusProductAttributeValue,
			method: 'post',
			data: params,
		});

export const getBusProductDropdown = () =>
		request({
		url: Api.GetBusProductDropdown,
		method: 'get'
		});
export const getBusAttributeDropdown = () =>
		request({
		url: Api.GetBusAttributeDropdown,
		method: 'get'
		});
export const getBusPAttributeInfoDropdown = () =>
		request({
		url: Api.GetBusPAttributeInfoDropdown,
		method: 'get'
		});

